<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<head th:replace="~{segmentation/_right_bottom_header::_header_common(~{::title},~{::link},~{::style})}">
        <meta charset="utf-8">
    <title>数据源配置查看</title>
    <link>
    <style type="text/css"></style>
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>数据源配置查看</legend>
        </fieldset>
        <form class="layui-form" id="dataSourceConfigFormView" action="">
            <div class="layui-form-item">
                <label class="layui-form-label">数据源名称</label>
                <div class="layui-input-block">
                    <span class="view-span" th:text="${p.name}"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">数据源编码</label>
                <div class="layui-input-block">
                    <span class="view-span" th:text="${p.code}"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">连接</label>
                <div class="layui-input-block">
                    <span class="view-span" th:text="${p.connectAddress}"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">帐号</label>
                <div class="layui-input-block">
                    <span class="view-span" th:text="${p.account}"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">密码</label>
                <div class="layui-input-block">
                    <span class="view-span" th:text="${p.password}"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">驱动程序类</label>
                <div class="layui-input-block">
                    <span class="view-span" th:text="${p.driverClass}"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">启用状态</label>
                <div class="layui-input-block">
                    <span class="view-span" th:text="${p.enableStatus}"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">创建人</label>
                <div class="layui-input-block">
                    <span class="view-span" th:text="${p.createUserName}"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">创建时间</label>
                <div class="layui-input-block">
                    <span class="view-span" th:text="${#dates.format(p.createTime, 'yyyy-MM-dd HH:mm:ss')}"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">操作人</label>
                <div class="layui-input-block">
                    <span class="view-span" th:text="${p.operaterUserName}"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">操作时间</label>
                <div class="layui-input-block">
                    <span class="view-span" th:text="${#dates.format(p.operaterTime, 'yyyy-MM-dd HH:mm:ss')}"></span>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">操作状态</label>
                <div class="layui-input-block">
                    <span class="view-span" th:each="item : ${@typeServiceImpl.findByParentCodeList('operaterStatus')}"
                          th:text="${item.typeName}"
                          th:if="${p.operaterStatus == item.typeValue}"></span>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>